package com.ruoyi.hospital.domain.order;

import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.common.core.domain.NewBaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 配送区域对象 express_template_region
 * 
 * @author wendao
 * @date 2025-06-17
 */
public class ExpressTemplateRegion extends NewBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 模板ID */
    @Excel(name = "模板ID")
    private Integer templateId;

    /** 区域类型 */
    @Excel(name = "区域类型")
    private Integer regionType;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String regionName;

    /** 区域编码 */
    @Excel(name = "区域编码")
    private String regionCode;

    /** 首件数量 */
    @Excel(name = "首件数量")
    private Integer firstItem;

    /** 首件运费 */
    @Excel(name = "首件运费")
    private BigDecimal firstFee;

    /** 续件数量 */
    @Excel(name = "续件数量")
    private Integer continueItem;

    /** 续件运费 */
    @Excel(name = "续件运费")
    private BigDecimal continueFee;

    private String  code;


    private List<Region> regionCodes;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<Region> getRegionCodes() {
        return regionCodes;
    }

    public void setRegionCodes(List<Region> regionCodes) {
        this.regionCodes = regionCodes;
    }


    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTemplateId(Integer templateId) 
    {
        this.templateId = templateId;
    }

    public Integer getTemplateId() 
    {
        return templateId;
    }
    public void setRegionType(Integer regionType)
    {
        this.regionType = regionType;
    }

    public Integer getRegionType()
    {
        return regionType;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }
    public void setRegionCode(String regionCode) 
    {
        this.regionCode = regionCode;
    }

    public String getRegionCode() 
    {
        return regionCode;
    }
    public void setFirstItem(Integer firstItem) 
    {
        this.firstItem = firstItem;
    }

    public Integer getFirstItem() 
    {
        return firstItem;
    }
    public void setFirstFee(BigDecimal firstFee) 
    {
        this.firstFee = firstFee;
    }

    public BigDecimal getFirstFee() 
    {
        return firstFee;
    }
    public void setContinueItem(Integer continueItem) 
    {
        this.continueItem = continueItem;
    }

    public Integer getContinueItem() 
    {
        return continueItem;
    }
    public void setContinueFee(BigDecimal continueFee) 
    {
        this.continueFee = continueFee;
    }

    public BigDecimal getContinueFee() 
    {
        return continueFee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateId", getTemplateId())
            .append("regionType", getRegionType())
            .append("regionName", getRegionName())
            .append("regionCode", getRegionCode())
            .append("firstItem", getFirstItem())
            .append("firstFee", getFirstFee())
            .append("continueItem", getContinueItem())
            .append("continueFee", getContinueFee())
            .toString();
    }
}
